import 'dart:convert';

import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/circle_list_entity.g.dart';

@JsonSerializable()
class CircleListEntity {
  List<String>? images;
  CircleListVos? vos;

  CircleListEntity();

  factory CircleListEntity.fromJson(Map<String, dynamic> json) => $CircleListEntityFromJson(json);

  Map<String, dynamic> toJson() => $CircleListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class CircleListVos {
  List<CircleListVosList>? list;
  bool? hasNext;

  CircleListVos();

  factory CircleListVos.fromJson(Map<String, dynamic> json) => $CircleListVosFromJson(json);

  Map<String, dynamic> toJson() => $CircleListVosToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class CircleListVosList {
  int? id;
  String? mainTitle;
  String? shortContent;
  String? publicTime;
  int? commentNum;
  int? likedNum;
  String? mainImg;

  CircleListVosList();

  factory CircleListVosList.fromJson(Map<String, dynamic> json) => $CircleListVosListFromJson(json);

  Map<String, dynamic> toJson() => $CircleListVosListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
